package com.hjxy.pojo;

/**
 * @description: 用户登录
 * @author: ty
 * @createDate: 2020/9/28
 * @version: 1.0
 */
//@Data
//@AllArgsConstructor
//@NoArgsConstructor
public class UserLogin {
    private int userId;
    private String username;
    private String password;
    private int role;
    private Role roles;

    public Role getRoles() {
        return roles;
    }

    public void setRoles(Role roles) {
        this.roles = roles;
    }

    @Override
    public String toString() {
        return "UserLogin{" +
                "userId=" + userId +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", role=" + role +
                ", roles=" + roles +
                '}';
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getRole() {
        return role;
    }

    public void setRole(int role) {
        this.role = role;
    }

    public UserLogin() {
    }

    public UserLogin(int userId, String username, String password, int role, Role roles) {
        this.userId = userId;
        this.username = username;
        this.password = password;
        this.role = role;
        this.roles = roles;
    }
}
